package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.exception.UserException;
import com.itheima.pojo.Menu;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    User loadUserByUsername(String username);

    List<Menu> findAllMenu();

    void doAdd(Menu menu) throws UserException;

    void remove(Integer id) throws UserException;

    Menu findById(Integer id);

    void edit(Menu menu) throws UserException;

    PageResult findRightPage(QueryPageBean queryPageBean);
}
